package zhtt.repositoryrest;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

/**
 * Created by ztt on 2018/3/18.
 */
public class UserRepositoryRestImpl {

    @PersistenceContext
    private EntityManager em;

    public int update() {
        String update = "UPDATE User user password=1";
        return em.createQuery(update).executeUpdate();
    }
}
